﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

using DQYT.HTDZ.BLL;
using DQYT.HTDZ.Model;
namespace DQYT.HTDZ.Web.BDDICT
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				decimal TABLE_ID = -1;
				if (Request.Params["id0"] != null && Request.Params["id0"].Trim() != "")
				{
					TABLE_ID=(Convert.ToDecimal(Request.Params["id0"]));
				}
				string FIELD_CODE = "";
				if (Request.Params["id1"] != null && Request.Params["id1"].Trim() != "")
				{
					FIELD_CODE= Request.Params["id1"];
				}
				#warning 代码生成提示：显示页面,请检查确认该语句是否正确
				ShowInfo(TABLE_ID,FIELD_CODE);
			}
		}
		
	private void ShowInfo(decimal TABLE_ID,string FIELD_CODE)
	{
		BDDICTBLL bll=new BDDICTBLL();
		BDDICTModel model=bll.GetModel(TABLE_ID,FIELD_CODE);
		this.lblTABLE_ID.Text=model.TABLE_ID.ToString();
		this.lblFIELD_CODE.Text=model.FIELD_CODE;
		this.lblFIELD_NAME.Text=model.FIELD_NAME;
		this.lblFIELD_TYPE.Text=model.FIELD_TYPE;
		this.lblFIELD_NULL.Text=model.FIELD_NULL;
		this.lblFIELD_LONG.Text=model.FIELD_LONG.ToString();
		this.lblFIELD_KEY.Text=model.FIELD_KEY;
		this.lblFIELD_SHOWWIDTH.Text=model.FIELD_SHOWWIDTH.ToString();
		this.lblFIELD_SHOW.Text=model.FIELD_SHOW;
		this.lblFIELD_POPWIN.Text=model.FIELD_POPWIN;
		this.lblFIELD_DATASOURCE.Text=model.FIELD_DATASOURCE;
		this.lblFIELD_AUTOCOL.Text=model.FIELD_AUTOCOL;
		this.lblFIELD_UNIQUE.Text=model.FIELD_UNIQUE;
		this.lblFIELD_ID.Text=model.FIELD_ID;
		this.lblTABLE_CODE.Text=model.TABLE_CODE;

	}


    }
}
